export const routes=[
  {
    path: '/',
    redirect: '/home',
  },
  {
    name: '首页',
    path: '/home',
    component: './Home',
  },
  {
    name: '系统管理',
    path: '/sys',
    routes:[
      {
        name: '用户管理',
        path: 'user',
        pkey:'usermanage',
        component: 'sys/user',
      },

      {

        name: '角色管理',
        path: 'role',
        pkey:'rolemanage',
        component: 'sys/role',
      },

      {

        name: '系统设置',
        path: 'settings',
        pkey:'settingsmanage',
        component: 'sys/settings',
      }
    ]
  },
  {
    name: '权限演示',
    path: '/access',
    pkey:'user',
    component: './Access',
  },
  {
    name: ' CRUD 示例',
    path: '/table',
    pkey: 'user',
    component: './Table',
  },
]